<?php

    $fileName = $_GET['file'];
	
	$file = fopen($fileName, 'r') or die("Error opening file.");
	
	$data = "";
	
	if (filesize($fileName) > 0)
	{
		$data = fread($file, filesize($fileName));
	}
	fclose($file);
    
	echo $data;
?>